package com.jr.mapper;

import com.jr.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
@Mapper
public interface UserMapper {

    int insertUser(User user);//注册
    ArrayList<User> loginUser(User user);
    User finduseremail(String email);//根据邮箱查找用户
    User finduserphone(String phone);//根据电话号查找用户
    int update2(User user);//忘记密码

}
